export const getNoteState = (store: any) => store.note;

export const getSelectedTag = (store: any) =>
  getNoteState(store).selectedTag || [];

export const getSelectedCategory = (store: any) => {
  return getNoteState(store).category || "0";
};

export const getTagList = (store: any) => {
  const i = getSelectedCategory(store);
  const tags = store.tags.filter((_tag: any) => {
    return _tag.category === i;
  });
  return tags;
};
